﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TecentCOS.Extensions
{
    public class TagContainer

    {

        public int OrdinalNum;

        public string Name;

        public TagBuilder Tb;

        public TagContainer ParentContainer;

        public List<TagContainer> ChildrenContainers = new List<TagContainer>();



        public TagContainer(ref int Num, TagContainer parent)

        {
            OrdinalNum = Num++;
            ParentContainer = parent;
            if (parent != null)
            {
                parent.ChildrenContainers.Add(this);
            }

        }

    }
}